<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>XSLFTextShape (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="XSLFTextShape (POI API Documentation)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSLFTextShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextRun.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTheme.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/xslf/usermodel/XSLFTextShape.html" target="_top">FRAMES</a></li>
<li><a href="XSLFTextShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.apache.poi.xslf.usermodel</p>
<h2 title="Class XSLFTextShape" class="title">Class XSLFTextShape</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html" title="class in org.apache.poi.xslf.usermodel">org.apache.poi.xslf.usermodel.XSLFShape</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html" title="class in org.apache.poi.xslf.usermodel">org.apache.poi.xslf.usermodel.XSLFSimpleShape</a></li>
<li>
<ul class="inheritance">
<li>org.apache.poi.xslf.usermodel.XSLFTextShape</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Iterable&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFAutoShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFAutoShape</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTableCell.html" title="class in org.apache.poi.xslf.usermodel">XSLFTableCell</a></dd>
</dl>
<hr>
<br>
<pre><a href="../../../../../org/apache/poi/util/Beta.html" title="annotation in org.apache.poi.util">@Beta</a>
public abstract class <strong>XSLFTextShape</strong>
extends <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFSimpleShape</a>
implements java.lang.Iterable&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;</pre>
<div class="block">Represents a shape that can hold text.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Yegor Kozlov</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#addNewTextParagraph()">addNewTextParagraph</a></strong>()</code>
<div class="block">add a new paragraph run to this shape</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#clearText()">clearText</a></strong>()</code>
<div class="block">unset text from this shape</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#drawContent(java.awt.Graphics2D)">drawContent</a></strong>(java.awt.Graphics2D&nbsp;graphics)</code>
<div class="block">draw any content within this shape (image, text, etc.).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getBottomInset()">getBottomInset</a></strong>()</code>
<div class="block">Returns the distance (in points) between the bottom of the text frame
 and the bottom of the inscribed rectangle of the shape that contains the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getLeftInset()">getLeftInset</a></strong>()</code>
<div class="block">Returns the distance (in points) between the left edge of the text frame
  and the left edge of the inscribed rectangle of the shape that contains
  the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getRightInset()">getRightInset</a></strong>()</code>
<div class="block">Returns the distance (in points) between the right edge of the
  text frame and the right edge of the inscribed rectangle of the shape
  that contains the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getText()">getText</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/xslf/usermodel/TextAutofit.html" title="enum in org.apache.poi.xslf.usermodel">TextAutofit</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextAutofit()">getTextAutofit</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextBody(boolean)">getTextBody</a></strong>(boolean&nbsp;create)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBodyProperties</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextBodyPr()">getTextBodyPr</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/xslf/usermodel/TextDirection.html" title="enum in org.apache.poi.xslf.usermodel">TextDirection</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextDirection()">getTextDirection</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextHeight()">getTextHeight</a></strong>()</code>
<div class="block">Compute the cumulative height occupied by the text</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextParagraphs()">getTextParagraphs</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/xslf/usermodel/Placeholder.html" title="enum in org.apache.poi.xslf.usermodel">Placeholder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTextType()">getTextType</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTopInset()">getTopInset</a></strong>()</code>
<div class="block">Returns the distance (in points) between the top of the text frame
  and the top of the inscribed rectangle of the shape that contains the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/xslf/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.xslf.usermodel">VerticalAlignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getVerticalAlignment()">getVerticalAlignment</a></strong>()</code>
<div class="block">Returns the type of vertical alignment for the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getWordWrap()">getWordWrap</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Iterator&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#iterator()">iterator</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.awt.geom.Rectangle2D</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#resizeToFitText()">resizeToFitText</a></strong>()</code>
<div class="block">Adjust the size of the shape so it encompasses the text inside it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setBottomInset(double)">setBottomInset</a></strong>(double&nbsp;margin)</code>
<div class="block">Sets the botom margin.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setLeftInset(double)">setLeftInset</a></strong>(double&nbsp;margin)</code>
<div class="block">Sets the left margin.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setPlaceholder(org.apache.poi.xslf.usermodel.Placeholder)">setPlaceholder</a></strong>(<a href="../../../../../org/apache/poi/xslf/usermodel/Placeholder.html" title="enum in org.apache.poi.xslf.usermodel">Placeholder</a>&nbsp;placeholder)</code>
<div class="block">Specifies that the corresponding shape should be represented by the generating application
 as a placeholder.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setRightInset(double)">setRightInset</a></strong>(double&nbsp;margin)</code>
<div class="block">Sets the right margin.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setText(java.lang.String)">setText</a></strong>(java.lang.String&nbsp;text)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setTextAutofit(org.apache.poi.xslf.usermodel.TextAutofit)">setTextAutofit</a></strong>(<a href="../../../../../org/apache/poi/xslf/usermodel/TextAutofit.html" title="enum in org.apache.poi.xslf.usermodel">TextAutofit</a>&nbsp;value)</code>
<div class="block">Specifies that a shape should be auto-fit to fully contain the text described within it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setTextDirection(org.apache.poi.xslf.usermodel.TextDirection)">setTextDirection</a></strong>(<a href="../../../../../org/apache/poi/xslf/usermodel/TextDirection.html" title="enum in org.apache.poi.xslf.usermodel">TextDirection</a>&nbsp;orientation)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setTopInset(double)">setTopInset</a></strong>(double&nbsp;margin)</code>
<div class="block">Sets the top margin.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setVerticalAlignment(org.apache.poi.xslf.usermodel.VerticalAlignment)">setVerticalAlignment</a></strong>(<a href="../../../../../org/apache/poi/xslf/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.xslf.usermodel">VerticalAlignment</a>&nbsp;anchor)</code>
<div class="block">Sets the type of vertical alignment for the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#setWordWrap(boolean)">setWordWrap</a></strong>(boolean&nbsp;wrap)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.poi.xslf.usermodel.XSLFSimpleShape">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.poi.xslf.usermodel.<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFSimpleShape</a></h3>
<code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#draw(java.awt.Graphics2D)">draw</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getAnchor()">getAnchor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getCTPlaceholder()">getCTPlaceholder</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getFillColor()">getFillColor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getFlipHorizontal()">getFlipHorizontal</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getFlipVertical()">getFlipVertical</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineCap()">getLineCap</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineColor()">getLineColor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineDash()">getLineDash</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineHeadDecoration()">getLineHeadDecoration</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineHeadLength()">getLineHeadLength</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineHeadWidth()">getLineHeadWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineTailDecoration()">getLineTailDecoration</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineTailLength()">getLineTailLength</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineTailWidth()">getLineTailWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getLineWidth()">getLineWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getNvPr()">getNvPr</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getRotation()">getRotation</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getShadow()">getShadow</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getShapeId()">getShapeId</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getShapeName()">getShapeName</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getShapeType()">getShapeType</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getSheet()">getSheet</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getSpPr()">getSpPr</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getSpStyle()">getSpStyle</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#getXmlObject()">getXmlObject</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setAnchor(java.awt.geom.Rectangle2D)">setAnchor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setFillColor(java.awt.Color)">setFillColor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setFlipHorizontal(boolean)">setFlipHorizontal</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setFlipVertical(boolean)">setFlipVertical</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineCap(org.apache.poi.xslf.usermodel.LineCap)">setLineCap</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineColor(java.awt.Color)">setLineColor</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineDash(org.apache.poi.xslf.usermodel.LineDash)">setLineDash</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineHeadDecoration(org.apache.poi.xslf.usermodel.LineDecoration)">setLineHeadDecoration</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineHeadLength(org.apache.poi.xslf.usermodel.LineEndLength)">setLineHeadLength</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineHeadWidth(org.apache.poi.xslf.usermodel.LineEndWidth)">setLineHeadWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineTailDecoration(org.apache.poi.xslf.usermodel.LineDecoration)">setLineTailDecoration</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineTailLength(org.apache.poi.xslf.usermodel.LineEndLength)">setLineTailLength</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineTailWidth(org.apache.poi.xslf.usermodel.LineEndWidth)">setLineTailWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setLineWidth(double)">setLineWidth</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setRotation(double)">setRotation</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#setShapeType(org.apache.poi.xslf.usermodel.XSLFShapeType)">setShapeType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.poi.xslf.usermodel.XSLFShape">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.poi.xslf.usermodel.<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFShape</a></h3>
<code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#applyTransform(java.awt.Graphics2D)">applyTransform</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="iterator()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public&nbsp;java.util.Iterator&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;&nbsp;iterator()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.lang.Iterable&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getText</h4>
<pre>public&nbsp;java.lang.String&nbsp;getText()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>text contained within this shape or empty string</dd></dl>
</li>
</ul>
<a name="clearText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearText</h4>
<pre>public&nbsp;void&nbsp;clearText()</pre>
<div class="block">unset text from this shape</div>
</li>
</ul>
<a name="setText(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setText</h4>
<pre>public&nbsp;void&nbsp;setText(java.lang.String&nbsp;text)</pre>
</li>
</ul>
<a name="getTextParagraphs()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextParagraphs</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&gt;&nbsp;getTextParagraphs()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>text paragraphs in this shape</dd></dl>
</li>
</ul>
<a name="addNewTextParagraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addNewTextParagraph</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextParagraph.html" title="class in org.apache.poi.xslf.usermodel">XSLFTextParagraph</a>&nbsp;addNewTextParagraph()</pre>
<div class="block">add a new paragraph run to this shape</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>created paragraph run</dd></dl>
</li>
</ul>
<a name="setVerticalAlignment(org.apache.poi.xslf.usermodel.VerticalAlignment)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVerticalAlignment</h4>
<pre>public&nbsp;void&nbsp;setVerticalAlignment(<a href="../../../../../org/apache/poi/xslf/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.xslf.usermodel">VerticalAlignment</a>&nbsp;anchor)</pre>
<div class="block">Sets the type of vertical alignment for the text.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>anchor</code> - - the type of alignment.
 A <code>null</code> values unsets this property.</dd></dl>
</li>
</ul>
<a name="getVerticalAlignment()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVerticalAlignment</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/xslf/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.xslf.usermodel">VerticalAlignment</a>&nbsp;getVerticalAlignment()</pre>
<div class="block">Returns the type of vertical alignment for the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the type of vertical alignment</dd></dl>
</li>
</ul>
<a name="setTextDirection(org.apache.poi.xslf.usermodel.TextDirection)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextDirection</h4>
<pre>public&nbsp;void&nbsp;setTextDirection(<a href="../../../../../org/apache/poi/xslf/usermodel/TextDirection.html" title="enum in org.apache.poi.xslf.usermodel">TextDirection</a>&nbsp;orientation)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>orientation</code> - vertical orientation of the text</dd></dl>
</li>
</ul>
<a name="getTextDirection()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextDirection</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/xslf/usermodel/TextDirection.html" title="enum in org.apache.poi.xslf.usermodel">TextDirection</a>&nbsp;getTextDirection()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>vertical orientation of the text</dd></dl>
</li>
</ul>
<a name="getBottomInset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBottomInset</h4>
<pre>public&nbsp;double&nbsp;getBottomInset()</pre>
<div class="block">Returns the distance (in points) between the bottom of the text frame
 and the bottom of the inscribed rectangle of the shape that contains the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the bottom inset in points</dd></dl>
</li>
</ul>
<a name="getLeftInset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLeftInset</h4>
<pre>public&nbsp;double&nbsp;getLeftInset()</pre>
<div class="block">Returns the distance (in points) between the left edge of the text frame
  and the left edge of the inscribed rectangle of the shape that contains
  the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the left inset in points</dd></dl>
</li>
</ul>
<a name="getRightInset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRightInset</h4>
<pre>public&nbsp;double&nbsp;getRightInset()</pre>
<div class="block">Returns the distance (in points) between the right edge of the
  text frame and the right edge of the inscribed rectangle of the shape
  that contains the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the right inset in points</dd></dl>
</li>
</ul>
<a name="getTopInset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTopInset</h4>
<pre>public&nbsp;double&nbsp;getTopInset()</pre>
<div class="block">Returns the distance (in points) between the top of the text frame
  and the top of the inscribed rectangle of the shape that contains the text.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the top inset in points</dd></dl>
</li>
</ul>
<a name="setBottomInset(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBottomInset</h4>
<pre>public&nbsp;void&nbsp;setBottomInset(double&nbsp;margin)</pre>
<div class="block">Sets the botom margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the bottom margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getBottomInset()"><code>getBottomInset()</code></a></dd></dl>
</li>
</ul>
<a name="setLeftInset(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLeftInset</h4>
<pre>public&nbsp;void&nbsp;setLeftInset(double&nbsp;margin)</pre>
<div class="block">Sets the left margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the left margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getLeftInset()"><code>getLeftInset()</code></a></dd></dl>
</li>
</ul>
<a name="setRightInset(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRightInset</h4>
<pre>public&nbsp;void&nbsp;setRightInset(double&nbsp;margin)</pre>
<div class="block">Sets the right margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the right margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getRightInset()"><code>getRightInset()</code></a></dd></dl>
</li>
</ul>
<a name="setTopInset(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTopInset</h4>
<pre>public&nbsp;void&nbsp;setTopInset(double&nbsp;margin)</pre>
<div class="block">Sets the top margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the top margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextShape.html#getTopInset()"><code>getTopInset()</code></a></dd></dl>
</li>
</ul>
<a name="getWordWrap()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWordWrap</h4>
<pre>public&nbsp;boolean&nbsp;getWordWrap()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>whether to wrap words within the bounding rectangle</dd></dl>
</li>
</ul>
<a name="setWordWrap(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWordWrap</h4>
<pre>public&nbsp;void&nbsp;setWordWrap(boolean&nbsp;wrap)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>wrap</code> - whether to wrap words within the bounding rectangle</dd></dl>
</li>
</ul>
<a name="setTextAutofit(org.apache.poi.xslf.usermodel.TextAutofit)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextAutofit</h4>
<pre>public&nbsp;void&nbsp;setTextAutofit(<a href="../../../../../org/apache/poi/xslf/usermodel/TextAutofit.html" title="enum in org.apache.poi.xslf.usermodel">TextAutofit</a>&nbsp;value)</pre>
<div class="block">Specifies that a shape should be auto-fit to fully contain the text described within it.
 Auto-fitting is when text within a shape is scaled in order to contain all the text inside</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - type of autofit</dd></dl>
</li>
</ul>
<a name="getTextAutofit()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextAutofit</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/xslf/usermodel/TextAutofit.html" title="enum in org.apache.poi.xslf.usermodel">TextAutofit</a>&nbsp;getTextAutofit()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>type of autofit</dd></dl>
</li>
</ul>
<a name="getTextBodyPr()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextBodyPr</h4>
<pre>protected&nbsp;org.openxmlformats.schemas.drawingml.x2006.main.CTTextBodyProperties&nbsp;getTextBodyPr()</pre>
</li>
</ul>
<a name="getTextBody(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextBody</h4>
<pre>protected abstract&nbsp;org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody&nbsp;getTextBody(boolean&nbsp;create)</pre>
</li>
</ul>
<a name="getTextType()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextType</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/xslf/usermodel/Placeholder.html" title="enum in org.apache.poi.xslf.usermodel">Placeholder</a>&nbsp;getTextType()</pre>
</li>
</ul>
<a name="setPlaceholder(org.apache.poi.xslf.usermodel.Placeholder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaceholder</h4>
<pre>public&nbsp;void&nbsp;setPlaceholder(<a href="../../../../../org/apache/poi/xslf/usermodel/Placeholder.html" title="enum in org.apache.poi.xslf.usermodel">Placeholder</a>&nbsp;placeholder)</pre>
<div class="block">Specifies that the corresponding shape should be represented by the generating application
 as a placeholder. When a shape is considered a placeholder by the generating application
 it can have special properties to alert the user that they may enter content into the shape.
 Different types of placeholders are allowed and can be specified by using the placeholder
 type attribute for this element</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>placeholder</code> - </dd></dl>
</li>
</ul>
<a name="getTextHeight()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextHeight</h4>
<pre>public&nbsp;double&nbsp;getTextHeight()</pre>
<div class="block">Compute the cumulative height occupied by the text</div>
</li>
</ul>
<a name="resizeToFitText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resizeToFitText</h4>
<pre>public&nbsp;java.awt.geom.Rectangle2D&nbsp;resizeToFitText()</pre>
<div class="block">Adjust the size of the shape so it encompasses the text inside it.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a <code>Rectangle2D</code> that is the bounds of this shape.</dd></dl>
</li>
</ul>
<a name="drawContent(java.awt.Graphics2D)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>drawContent</h4>
<pre>public&nbsp;void&nbsp;drawContent(java.awt.Graphics2D&nbsp;graphics)</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#drawContent(java.awt.Graphics2D)">XSLFSimpleShape</a></code></strong></div>
<div class="block">draw any content within this shape (image, text, etc.).</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html#drawContent(java.awt.Graphics2D)">drawContent</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFSimpleShape</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>graphics</code> - the graphics to draw into</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSLFTextShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTextRun.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFTheme.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/xslf/usermodel/XSLFTextShape.html" target="_top">FRAMES</a></li>
<li><a href="XSLFTextShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li>CONSTR&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                <i>Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.</i>
            </small></p>
</body>
</html>
